package com.f.manage.ASCII;

import java.util.Scanner;
public class jiecheng {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入一个正数：");
        String n = sc.nextLine();
        Long c = Long.parseLong(n);
        System.out.println("该数的阶乘是："+circulation(c));
    }
// 循环方法
    public static Long circulation(Long n){
        Long result = 1L;
        for(int i=1;i<=n;i++) {
            result*=i;
        }
        return result;
    }
    }
